import request from '@/utils/request'

// 查询参数列表
export function listFees(query) {
  return request({
    url: '/Fees/fees/list',
    method: 'get',
    params: query
  })
}
// 状态修改
export function changeFeesState(fid, fState) {
  const data = {
    fid,
    fState
  }
  return request({
    url: '/Fees/fees/changeState',
    method: 'put',
    data: data
  })
}

export function getFees(fid) {
  return request({
    url: '/Fees/fees/' + fid,
    method: 'get'
  })
}

export function delFees(fid) {
  return request({
    url: '/Fees/fees/' + fid,
    method: 'delete'
  })
}
export function updateFees(data) {
  return request({
    url: '/Fees/fees',
    method: 'put',
    data: data
  })
}
export function addFees(data) {
  return request({
    url: '/Fees/fees',
    method: 'post',
    data: data
  })
}
